#include "lib.c"



int integer_count_bits(int num)
{
	int count = 0;
	
	printf("%d--0x%x\t",num,num);
	while (num != 0) {
		count++;
		num = (num-1) &  num;
	}
	printf("--%d\n",count);
	
	return num;
}

int  main(int argc,char ** argv)
{
	if (argc == 2)  {
		integer_count_bits(atoi(argv[1]));
	} else {
		integer_count_bits(-1);
	}
	return 0;
}

